/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package freechoicepn.datamodel;

/**
 *
 * @author Tomas
 * 
 * Trieda reprezentujuca sipky
 */
public class Arc {
    
    private int sourceId;   // id z akeho vrchlou sipka vychadza
    private int destinationId;  // id do akeho vrcholu sipka smeruje
    private int multiplicity;   // nasobnost sipky

    public Arc(int sourceId, int destinationId, int multiplicity) {
        this.sourceId = sourceId;
        this.destinationId = destinationId;
        this.multiplicity = multiplicity;
    }

    @Override
    public String toString() {
        return "sourceId: " + sourceId + " destinationId: " + destinationId + " multiplicity: " + multiplicity + "\n";
    }

    public int getSourceId() {
        return sourceId;
    }

    public void setSourceId(int sourceId) {
        this.sourceId = sourceId;
    }

    public int getDestinationId() {
        return destinationId;
    }

    public void setDestinationId(int destinationId) {
        this.destinationId = destinationId;
    }

    public int getMultiplicity() {
        return multiplicity;
    }

    public void setMultiplicity(int multiplicity) {
        this.multiplicity = multiplicity;
    }
    
    
}
